body {
	font-family: 'Arial', sans-serif;
	margin: 0;
	padding: 0;
	color: #fff;
	background: radial-gradient(ellipse at center, #0a0e2a 0%, #000000 100%);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}


.container {
	width: 840px;
	margin: 0;
	backdrop-filter: blur(5px);
	padding: 10px;
	border-radius: 10px;
	background-color: rgba(10, 15, 30, 0.7);
	/* border: 1px solid rgba(100, 180, 255, 0.3); */
}
.container2{
	max-width: 1200px;
	margin: 10px auto;
	background-color: rgba(10, 15, 30, 0.7);
	backdrop-filter: blur(5px);
	border-radius: 10px;
	border: 1px solid rgba(100, 180, 255, 0.3);
	padding: 10px;
}

#tag,#tag2{
	width:80px;
	font-family: Arial,serif;
	background-color: orange;
	text-align: center;
	font-size: medium;
	color: black;
	position: absolute;
	right: 10px;
	padding: 5px;
	border-radius: 5px;
	transition: opacity 0.3s ease-in-out;
}

header {
	text-align: center;
	padding: 40px 20px;
	margin-bottom: 30px;
	position: relative;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(100, 180, 255, 0.3);
	border: 1px solid rgba(100, 180, 255, 0.5);
	backdrop-filter: blur(10px);
}

h1, h2, h3, h4 { font-family: Arial,serif; }
  h1 { margin-bottom: 0.5em; color: #FFFFFF; text-shadow: 0 0 10px rgba(100, 180, 255, 0.7); }
  h4 { color: #a0c4f5; margin-top: 0; font-size: 18px; font-weight: 400; }
  a { color: #666666; }
  
  /* Header specific link style */
  header a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 2px 0;
  }
  
  header a:hover {
    color: #8ad2ff;
    border-bottom: 2px solid #8ad2ff;
    text-shadow: 0 0 8px rgba(138, 210, 255, 0.5);
  }
  
  /* Enhance h1 style */
  header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #8ad2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    font-weight: bold;
  }
  
  header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(138, 210, 255, 0.8), transparent);
  }
  
  /* Enhance h4 style */
  header h4 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #a0c4f5;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(160, 196, 245, 0.6);
  }
  
#confirm{
	width: 100px;
	margin-left: 90px;
	background-color: #1fc0db;
	color: white;
}
#close-form-button{
	width: 100px;
	margin-left: 100px;
	background-color: crimson;
	color: white;
}

.popup-form {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	padding: 20px;
	background-color: #fff;
	border: 1px solid #c1a3a3;
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
	display: none;
	border-radius: 5px;
}
.form-item{
	height: 50px;
}
.form-item1{
	height: 80px;
}
.popup-form.active {
	display: block;
}
.popup-form label{
	font-size: medium;
	font-family: Arial,serif;
	color: black;
	width: 200px;
	margin-bottom: 10px;
	vertical-align: middle;
}
.pixscale{
	width: 120px;
	height: 20px;
	font-size: medium;
	border-radius: 5px;
}

.popup-form input {
	width: 300px;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	float: right;
}

.popup-form button {
	padding: 10px 20px;
	margin-right: 10px;
	border: none;
	background: #3a7bd5;
	cursor: pointer;
	border-radius: 7px;
	color: white;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
	transition: all 0.3s ease;
}

.popup-form button:hover {
	box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
	transform: translateY(-2px);
	background: #2c5aa0;
}

.popup-form button:active {
	transform: translateY(0);
}

.bar {
	width: 400px;
	height: 400px;
	float: left;
	margin: 5px;
	border: 1px solid #666666;
	position: relative;
	/*background-size: 400px 400px;*/
}
.barTitle {
	font-family: 'Arial', sans-serif;
	text-align: center;
	padding: 15px 0px;
	font-size: 22px;
	font-weight: bold;
	color: #ffffff;
	width: 400px;
	height: auto;
	float: left;
	margin: 5px;
	border: 1px solid rgba(100, 180, 255, 0.5);
	background: #1a3b6e;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.barTitle:hover {
	transform: translateY(-2px);
	border-color: rgba(100, 180, 255, 0.8);
}

.barTitle p {
	margin: 0;
	position: relative;
	z-index: 2;
}

/* 参数走势图标题样式 - 参考barTitle但有所区别 */
.paramChartTitle {
	font-family: 'Arial', sans-serif;
	text-align: center;
	padding: 15px 0px;
	font-size: 22px;
	font-weight: bold;
	color: #ffffff;
	width: 100%;
	height: auto;
	margin: 7px;
	border: 1px solid rgba(100, 180, 255, 0.4);
	background: #2c5aa0;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.paramChartTitle:hover {
	transform: translateY(-1px);
	border-color: rgba(100, 180, 255, 0.7);
}

.paramChartTitle p {
	margin: 0;
	position: relative;
	z-index: 2;
}


.button {
	display: inline-block;
	border-radius: 7px;
	background: #2d68ba;
	border: none;
	color: #FFFFFF;
	text-align: center;
	font-size: 18px;
	padding: 10px;
	width: 200px;
	transition: all 0.5s;
	cursor: pointer;
	margin: 5px;
}

.button span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	transition: 0.5s;
}

.button span:after {
	content: '»';
	position: absolute;
	opacity: 0;
	top: 0;
	right: -20px;
	transition: 0.5s;
}

.button:hover span {
	padding-right: 25px;
}

.button:hover span:after {
	opacity: 1;
	right: 0;
}

.button:hover {
	background: #2c5aa0;
}

button {
	background: #3a7bd5;
	color: white;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
	transition: all 0.3s ease;
}

button:hover {
	box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
	transform: translateY(-2px);
	background: #2c5aa0;
}

button:active {
	transform: translateY(0);
}

.Uploadbtn {
	position: relative;
	overflow: hidden;
	display: inline-block;
	border-radius: 7px;
	background: #3a7bd5;
	border: none;
	color: #FFFFFF;
	text-align: center;
	font-size: 18px;
	padding: 10px;
	width: 200px;
	transition: all 0.3s ease;
	cursor: pointer;
	margin: 5px;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.Uploadbtn:hover {
	box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
	transform: translateY(-2px);
	background: #2c5aa0;
}

input[type="number"], input[type="text"] {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(100, 180, 255, 0.5);
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
}

input[type="number"]:focus, input[type="text"]:focus {
	outline: none;
	border-color: #00d2ff;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.Uploadbtn .input-upload {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	height:100%;
	width:100%;
}


.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 220px;
	background-color: black;
	color: white;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;
	/* Position the tooltip */
	position: absolute;
	bottom: 125%;
	margin-left: -70px;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
}

/* 加载动画样式 */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.loading-content {
	text-align: center;
	color: white;
}


.loading-text {
	font-size: 18px;
	margin: 0;
	color: #ecf0f1;
}

/* MCMC日志区域样式 */
#log {
	width: 100%;
	height: 300px;
	background-color: #1a1a1a;
	color: #e0e0e0;
	border: 1px solid #4a6278;
	border-radius: 6px;
	padding: 15px;
	margin: 20px 0;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	line-height: 1.5;
	overflow-y: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
}

#log::-webkit-scrollbar {
	width: 8px;
}

#log::-webkit-scrollbar-track {
	background: #111827;
	border-radius: 4px;
}

#log::-webkit-scrollbar-thumb {
	background: #4b5563;
	border-radius: 4px;
}

#log::-webkit-scrollbar-thumb:hover {
	background: #6b7280;
}

/* 日志颜色样式 */
.log-status {
	color: #3498db;
	font-weight: bold;
}

.log-process {
	color: #f1c40f;
	font-weight: bold;
}

.log-finished {
	color: #2ecc71;
	font-weight: bold;
}

.log-error {
	color: #e74c3c;
	font-weight: bold;
}

/* 结果展示容器样式 - 增大面积并优化布局 */
#result-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	padding: 30px;
	max-width: 95vw;
	max-height: 95vh;
	overflow: auto;
	display: none;
	z-index: 1000;
}

/* 图片容器样式 */
.result-images-container {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 30px;
	align-items: flex-start;
}

/* 图片容器高度控制 */
.result-image-wrapper {
	height: 500px; /* 增大图片容器高度 */
}

/* 图片样式 */
.result-image {
	height: 100%;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.result-image:hover {
	transform: scale(1.02);
}

/* 按钮容器样式 */
.result-actions {
	text-align: center;
	margin-top: 30px;
}

/* 保存按钮样式 */
#save-btn {
	margin-right: 20px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: #007bff;
	color: white;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.3s;
}

#save-btn:hover {
	background: #0056b3;
}

/* 继续按钮样式 */
#continue-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: #28a745;
	color: white;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.3s;
}

#continue-btn:hover {
	background: #1e7e34;
}

/* 原有的结果展示容器样式（备用） */
.result-container-original {
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	overflow-y: auto;
	padding: 20px;
}


/* 关闭按钮样式 */
.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(239, 68, 68, 0.2);
	color: #ef4444;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.close-btn:hover {
	background: #ef4444;
	color: white;
	transform: scale(1.1);
}

/* 参数走势图容器样式 */
.chart-container {
	background-color: white;
	padding: 8px;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
	height: 200px;
	border: 1px solid #ddd;
}

/* MCMC进度条样式 */
.progress-time {
	color: #b9c3cd;
	font-size: 24px;
	font-weight: bold;
	margin: 20px 0;
	text-align: center;
	text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-container {
	width: 80%;
	height: 24px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
	border-radius: 12px;
	margin: 15px auto;
	overflow: hidden;
	position: relative;
	border: 2px solid rgba(76, 175, 80, 0.3);
	box-shadow: 
		inset 0 2px 4px rgba(0, 0, 0, 0.2),
		0 2px 8px rgba(76, 175, 80, 0.2);
}

.progress-bar {
	height: 100%;
	width: 0%;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill {
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, 
		#4CAF50 0%, 
		#45a049 25%, 
		#66BB6A 50%, 
		#4CAF50 75%, 
		#2E7D32 100%);
	background-size: 200% 100%;
	animation: progress-shine 2s linear infinite;
	border-radius: 10px;
	position: relative;
}

.progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(255, 255, 255, 0.3), 
		transparent);
	animation: progress-sweep 1.5s ease-in-out infinite;
}

.progress-glow {
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(90deg, 
		#4CAF50, 
		#66BB6A, 
		#4CAF50);
	border-radius: 12px;
	z-index: -1;
	opacity: 0;
	animation: progress-glow 2s ease-in-out infinite;
}

.progress-text {
	color: white;
	font-size: 16px;
	font-weight: 600;
	margin-top: 15px;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	letter-spacing: 0.5px;
}

/* 进度条动画 */
@keyframes progress-shine {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes progress-sweep {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

@keyframes progress-glow {
	0%, 100% { opacity: 0; }
	50% { opacity: 0.6; }
}

/* 响应式调整 */
@media (max-width: 1024px) {
	.result-content {
		grid-template-columns: 1fr;
	}
	
	.progress-container {
		width: 90%;
	}
	
	.progress-time {
		font-size: 20px;
	}
	
	.progress-text {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.loading-spinner {
		width: 40px;
		height: 40px;
		border-width: 4px;
	}
	
	.loading-text {
		font-size: 16px;
	}
	
	.result-header {
		font-size: 20px;
	}
	
	.result-section {
		padding: 15px;
	}
	
	.result-actions button {
		padding: 10px 20px;
		font-size: 14px;
	}
	
	.progress-container {
		height: 20px;
	}
	
	.progress-time {
		font-size: 18px;
	}
	
	.progress-text {
		font-size: 12px;
	}
}